package cn.silver.module.configuration.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BusEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 字典数据表 sys_dict_data
 *
 * @author Silver Zhou
 */

@Data
@NoArgsConstructor
@Table(name = "sys_dict_data")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysDictItem", title = "字典数据对象")
public class SysDictItem extends BusEntity {

    /**
     * 字典类型
     */
    @Schema(title = "字典类型")
    private String type;

    /**
     * 字典编码
     */
    @Schema(title = "字典编码")
    private String code;

    /**
     * 字典标签
     */
    @Schema(title = "字典标签")
    private String name;

    /**
     * 是否默认（Y是 N否）
     */
    @Schema(title = "是否默认")
    private Boolean defaulted;

    /**
     * 字典排序
     */
    @Schema(title = "字典排序")
    private Integer sort;

    /**
     * 样式属性（其他样式扩展）
     */
    @Schema(title = "样式属性")
    private String cssClass;

    /**
     * 表格字典样式
     */
    @Schema(title = "表格样式")
    private String listClass;
}
